@extends('admin.base')
@section('title','编辑消息')
@section('header','编辑消息')
@section('content')
    <form class="layui-form" method="post" action="#">
        @csrf
        <div class="layui-form-item">
            <label class="layui-form-label">用户账号:</label>
            <div class="layui-input-block">
                <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off"
                       value="{{$new->username}}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题:</label>
            <div class="layui-input-block">
                <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off"
                       value="{{$new->title}}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容:</label>
            <div class="layui-input-block">
                <textarea id="demo" style="display: none;" name="content">{{$new->content}}</textarea>
            </div>
        </div>
    </form>
@endsection
@section('js')
    <script>
        layui.use('layedit', function(){
            var layedit = layui.layedit;
            layedit.build('demo'); //建立编辑器
        });
    </script>
@endsection
